package com.siyuanren.gcocp.dto.wx;

/**
 * @author guwr
 * @date 2018/5/11
 */

import com.siyuanren.gcocp.common.config.PublicConfig;
import com.siyuanren.gcocp.entity.WxUserCourse;
import lombok.Getter;
import lombok.Setter;


/**
 */
@Getter
@Setter
public class WxUserInviteCourseDTO extends WxUserCourse {

    private String courseDesc;

    private String userName;

    private String courseName;

    private String courseTarget;

    private String userImg;

    private Integer inviteVoucherId;

    private String inviteImg;

    private String inviteBgColor;

    /**
     * 二维码地址
     *
     * @return
     */
    public String getInviteFriendQrcodeUrl() {
        String shareUrl =  PublicConfig.USER_DATA_URL + super.getInviteFriendQrcodeUrl();
        return shareUrl;
    }

    public String getUserImg() {
        return PublicConfig.USER_DATA_URL + userImg;
    }

    public String getInviteImg() {
        return PublicConfig.RESOURCE_URL + inviteImg;
    }
}
